solve the quadratic equation